Skip to content

feat: add NEXT_PLUGIN_FORCE_RUN to skip auto-detection #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 21, 2021

Conversation

ascorbic
Copy link
Contributor

This PR adds support for an env var NEXT_PLUGIN_FORCE_RUN, which skips autodetection and forces the plugin to either always run (if set to "true" or "1") or never run (if set to "false" or "0")

Fixes #546

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 21, 2021
@ascorbic ascorbic requested a review from lindsaylevine July 21, 2021 13:49
Copy link

@lindsaylevine lindsaylevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rad !

.join(', ')}`,
.join(', ')}

If the site does use static export then you can set the env var NEXT_PLUGIN_FORCE_RUN to "false"`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also point to docs to disable/remove/uninstall the plugin as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ascorbic ascorbic merged commit e3e7cd1 into main Jul 21, 2021
@ascorbic ascorbic deleted the feat/static-env-var branch July 21, 2021 14:58
serhalp pushed a commit that referenced this pull request Jun 13, 2024
* fix: use next version in smoke tests

* test: update react rc version

---------

Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow static site export to be set via env var
2 participants